<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| 站点url
|--------------------------------------------------------------------------
*/
$config['base_url'] = 'http://www.tcfschina.com';
/*
|--------------------------------------------------------------------------
| 入口文件
|--------------------------------------------------------------------------
| example.com/[index_page]/controller/
| 如果为空需要配置.htaccess
| RewriteEngine On
| RewriteBase /
| RewriteCond %{REQUEST_FILENAME} !-f
| RewriteCond %{REQUEST_FILENAME} !-d
| RewriteRule ^(.*)$ index.php/$1 [L]
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI 获得方式
|--------------------------------------------------------------------------
|
| 'AUTO'   自动遍历所有可能
| 'PATH_INFO'  $_SERVER['PATH_INFO']
| 'QUERY_STRING' $_SERVER['QUERY_STRING']
| 'REQUEST_URI'  $_SERVER['REQUEST_URI']
| 'ORIG_PATH_INFO' $_SERVER['ORIG_PATH_INFO']
|
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL 后缀名
|--------------------------------------------------------------------------
| .html  example.com/controller/method.html
|
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| 默认主题
|--------------------------------------------------------------------------
*/
$config['theme'] = 'default';
/*
|--------------------------------------------------------------------------
| 默认语言
|--------------------------------------------------------------------------
*/
$config['language'] = 'chinese';
/*
|--------------------------------------------------------------------------
| 默认编码
|--------------------------------------------------------------------------
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| 是否启用钩子
|--------------------------------------------------------------------------
*/
$config['enable_hooks'] = TRUE;

/*
|--------------------------------------------------------------------------
| 自定义类 前缀
|--------------------------------------------------------------------------
*/
$config['subclass_prefix'] = 'MY_';

/*
|--------------------------------------------------------------------------
| URL 允许的字符
|--------------------------------------------------------------------------
| default:'a-z 0-9~%.:_\-';
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

/*
|--------------------------------------------------------------------------
| 路由配置
|--------------------------------------------------------------------------
|
| allow_get_array  TRUE    不允许$_GET
| enable_query_strings TRUE    example.com?who=me&what=something&where=here
| controller_trigger c  example.com/index.php?c=controller
| function_trigger  m  example.com/index.php?c=controller&m=method
| directory_trigger
|
*/
$config['allow_get_array']  = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger']  = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
/*
|--------------------------------------------------------------------------
| 错误记录级别
|--------------------------------------------------------------------------
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
*/
$config['log_threshold'] = 1;
/*
|--------------------------------------------------------------------------
| 日志 存放目录
|--------------------------------------------------------------------------
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| 日志 时间格式
|--------------------------------------------------------------------------
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| 缓存 存放目录
|--------------------------------------------------------------------------
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| 加密 Key
|--------------------------------------------------------------------------
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Cookie设置
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = 自定义cookie前缀
| 'cookie_domain' = 是否要跨域
| 'cookie_path'   = cookie保存路径
| 'cookie_secure' = 开启后只有HTTPS连接下才会设置coockie
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path']   = "/";
$config['cookie_secure'] = FALSE;

/*
|--------------------------------------------------------------------------
| Session设置
|--------------------------------------------------------------------------
*/
$config['session_name']            = "";
$config['session_save_path']       = "";
$config['session_auto_start']      = TRUE;
$config['session_cookie_lifetime'] = "";
$config['session_cookie_domain']   = "";
$config['session_cookie_secure']   = FALSE;
/*
|--------------------------------------------------------------------------
| 全局开启 XSS 字符过滤
|--------------------------------------------------------------------------
|
| GET, POST, COOKIE,建议在用户输入 string 类型数据时手动检测
| eg. $data = $this->security->xss_clean($data)
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| 跨站攻击设置
|--------------------------------------------------------------------------
| 'csrf_token_name'  = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire'      = The number in seconds the token should expire.
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
| 用apache deflate_module 效果更好
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
| 如果服务器使用了代理,input->ip_address 也能识别出正确的ip
*/
$config['proxy_ips'] = '';

/* End of file config.php */
/* Location: ./application/config/config.php */